package org.example.weather.bigscreen.portal.utils;

import org.apache.commons.io.IOUtils;

import java.io.IOException;

public class ResourceUtils {
    public static String readAsString(String filePath) {
        try {
            return IOUtils.toString(org.springframework.util.ResourceUtils.getURL(filePath));
        } catch (IOException e) {
            throw new RuntimeException(e);
        }
    }
}
